package com.third.service.Impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.third.entity.OutboundOrder;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import com.third.mapper.QualityMapper;
import com.third.entity.Quality;
import com.third.service.QualityService;

import java.util.HashMap;
import java.util.List;


@Service
public class QualityServiceImpl extends ServiceImpl<QualityMapper,Quality> implements QualityService{

    @Resource
    private QualityMapper qualityMapper;



    @Override
    public IPage<Quality> getList(HashMap<String,Object> map) {
        List<Quality> outList = qualityMapper.getList(map);
        int current =(int) map.get("current");
        int size =(int) map.get("size");
        IPage<Quality> page=new Page<>(current,size);
        page.setRecords(outList);
        return page;
    }
}
